package com.blog.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class TimeAspect {

    @Pointcut("@annotation(com.blog.annotation.RequiredTime)")
    public void doTime(){}

    @Before("doTime()")
    public void doBefore(){
        System.out.println("@Before");
    }
    //。。。。
}
